createTestArchive{
}
createBadInjectionPointArchive{
}
assertAnyHandlersAreFound{
  assertFalse(extension.getHandlersForExceptionType(IllegalArgumentException.class,bm,Collections.<Annotation>emptySet(),TraversalMode.DEPTH_FIRST).isEmpty());
}
assertNumberOfHandlersFoundMatchesExpectedDepthFirst{
  assertEquals(5,extension.getHandlersForExceptionType(IllegalArgumentException.class,bm,Collections.<Annotation>emptySet(),TraversalMode.DEPTH_FIRST).size());
}
assertNumberOfHandlersFoundMatchesExpectedBreathFirst{
  assertEquals(4,extension.getHandlersForExceptionType(IllegalArgumentException.class,bm,Collections.<Annotation>emptySet(),TraversalMode.BREADTH_FIRST).size());
}
assertSQLHandlerFound{
  final List<HandlerMethod<? extends Throwable>> handlerMethods=new ArrayList<HandlerMethod<? extends Throwable>>(extension.getHandlersForExceptionType(SQLException.class,bm,Collections.<Annotation>emptySet(),TraversalMode.DEPTH_FIRST));
  assertThat(handlerMethods.size(),is(4));
  assertThat(handlerMethods.get(3).getExceptionType(),equalTo((Type)SQLException.class));
}
assertQualifiedHandlerAndOthersAreFound{
  HashSet<Annotation> qualifiers=new HashSet<Annotation>();
  qualifiers.add(CatchQualifierLiteral.INSTANCE);
  assertEquals(7,extension.getHandlersForExceptionType(IllegalArgumentException.class,bm,qualifiers,TraversalMode.DEPTH_FIRST).size());
}
assertAllValidHandlersAreFoundDepthFirst{
  HashSet<Annotation> qualifiers=new HashSet<Annotation>();
  qualifiers.add(CatchQualifierLiteral.INSTANCE);
  qualifiers.add(ArquillianLiteral.INSTANCE);
  assertEquals(8,extension.getHandlersForExceptionType(IllegalArgumentException.class,bm,qualifiers,TraversalMode.DEPTH_FIRST).size());
}
assertAllValidHandlersAreFoundBreadthFirst{
  HashSet<Annotation> qualifiers=new HashSet<Annotation>();
  qualifiers.add(CatchQualifierLiteral.INSTANCE);
  qualifiers.add(ArquillianLiteral.INSTANCE);
  assertEquals(4,extension.getHandlersForExceptionType(IllegalArgumentException.class,bm,qualifiers,TraversalMode.BREADTH_FIRST).size());
}
assertDeploymentExceptionThrown{ }
